<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <my-collapse>
    <my-collapse-item title="Node" name="1" >
      <div>nodejs welcome</div>
    </my-collapse-item>
    <my-collapse-item title="react" name="2" >
      <div>react welcome</div>
    </my-collapse-item>
    <my-collapse-item title="vue" name="3" >
      <div>vue welcome</div>
    </my-collapse-item>
    <h3>H3</h3>
  </my-collapse>


  <template id="myCollapse">
    <div class="my-collapse">
      <slot></slot>
    </div>
  </template>

  <template id="myCollapseItem">
    <div class="my-collapse-item">
      <div class="title"></div>
      <div class="content">
        <slot></slot>
      </div>
    </div>
  </template>

  <script src="./index.js" type="module"></script>
</body>
</html>